package cn.xej.demo.util;

import java.util.concurrent.Callable;

/**
 * @Author alicat.xu
 * @Date 2021/10/21 2:45 下午
 */
public class TeamSwitchExecutor {

    public static <T> T test(Callable<T> callable){
        try {
            T t = callable.call();
            return t;
        } catch (Exception e) {
            throw new RuntimeException();
        }
    }
}
